package com.aaa.three.controller;

import com.aaa.three.entity.Doctor;
import com.aaa.three.result.AjaxResult;
import com.aaa.three.service.ResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:lyq
 * @Date:2022/2/2410:39
 */
@RestController
@RequestMapping("/result")
public class UserResultController {
    @Autowired
    private ResultService resultServiceImpl;

    @RequestMapping("/resultQuery")
    public AjaxResult  resultQuery (Doctor doctor){
        return resultServiceImpl.resultQuery(doctor);
    }


    @RequestMapping("cancel")
    public AjaxResult  cancel (Integer id){
        return resultServiceImpl.cancel(id);
    }
}
